home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / io.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  4KB  |  154 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- @RisingSun//XML//1.0//EN________________________________________________
  4.  
  5.     JEdit syntax mode for Io
  6.  
  7.     ..........................................................................
  8.  
  9.     File name        :    io.xml
  10.     Description        :    JEdit syntax file for the Io programming language
  11.     Related links    :    <http://www.iolanguage.com>, <http://www.jedit.org>
  12.  
  13.     ..........................................................................
  14.     Author            :    S├⌐bastien Pierre                  <spierre@type-z.org>
  15.     ..........................................................................
  16.  
  17.     Creation date    :    05-May-2003
  18.     Last revision    :    19-May-2003
  19.     Revision        :    1.1
  20.     History            :
  21.                         19-May-2003 Added primitives highlighting.
  22.                         05-May-2003 First release
  23.  
  24.     .....................................................................  -->
  25.  
  26. <!-- ________________________________________________________D O C T Y P E -->
  27. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  28.  
  29. <!-- ____________________________________________D O C U M E N T _ R O O T -->
  30. <MODE>
  31.  
  32.     <!-- Properties_______________________________________________________ -->
  33.  
  34.     <PROPS>
  35.         <PROPERTY NAME="commentStart" VALUE="/*" />
  36.         <PROPERTY NAME="commentStart" VALUE="*/" />
  37.         <PROPERTY NAME="lineComment" VALUE="#" />
  38.         <!-- FIXME: There may be a problem with this redefinition of
  39.         lineComment-->
  40.         <PROPERTY NAME="lineComment" VALUE="//" />
  41.         <PROPERTY NAME="indentOpenBrackets" VALUE="(" />
  42.         <PROPERTY NAME="indentCloseBrackets" VALUE=")" />
  43.     </PROPS>
  44.  
  45.     <!-- Rules____________________________________________________________ -->
  46.  
  47.     <RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
  48.  
  49.         <!-- Comments_____________________________________________________ -->
  50.  
  51.         <!-- Shell-like comments -->
  52.         <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
  53.  
  54.  
  55.         <!-- C-like comments -->
  56.         <EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
  57.         <SPAN TYPE="COMMENT1">
  58.             <BEGIN>/*</BEGIN>
  59.             <END>*/</END>
  60.         </SPAN>
  61.  
  62.         <!-- Strings______________________________________________________ -->
  63.  
  64.         <!-- Single quotes -->
  65.         <SPAN TYPE="LITERAL2" ESCAPE="\">
  66.             <BEGIN>"</BEGIN>
  67.             <END>"</END>
  68.         </SPAN>
  69.  
  70.         <!-- Triple quotes -->
  71.         <SPAN TYPE="LITERAL2" ESCAPE="\">
  72.             <BEGIN>"""</BEGIN>
  73.             <END>"""</END>
  74.         </SPAN>
  75.  
  76.         <!-- Operatiors___________________________________________________ -->
  77.  
  78.         <SEQ TYPE="OPERATOR">`</SEQ>
  79.         <SEQ TYPE="OPERATOR">~</SEQ>
  80.         <SEQ TYPE="OPERATOR">@</SEQ>
  81.         <SEQ TYPE="OPERATOR">@@</SEQ>
  82.         <SEQ TYPE="OPERATOR">$</SEQ>
  83.         <SEQ TYPE="OPERATOR">%</SEQ>
  84.         <SEQ TYPE="OPERATOR">^</SEQ>
  85.         <SEQ TYPE="OPERATOR">&</SEQ>
  86.         <SEQ TYPE="OPERATOR">*</SEQ>
  87.         <SEQ TYPE="OPERATOR">-</SEQ>
  88.         <SEQ TYPE="OPERATOR">+</SEQ>
  89.         <SEQ TYPE="OPERATOR">/</SEQ>
  90.         <SEQ TYPE="OPERATOR">=</SEQ>
  91.         <SEQ TYPE="OPERATOR">{</SEQ>
  92.         <SEQ TYPE="OPERATOR">}</SEQ>
  93.         <SEQ TYPE="OPERATOR">[</SEQ>
  94.         <SEQ TYPE="OPERATOR">]</SEQ>
  95.         <SEQ TYPE="OPERATOR">|</SEQ>
  96.         <SEQ TYPE="OPERATOR">\</SEQ>
  97.         <SEQ TYPE="OPERATOR">>=</SEQ>
  98.         <SEQ TYPE="OPERATOR"><=</SEQ>
  99.         <SEQ TYPE="OPERATOR">?</SEQ>
  100.  
  101.         <!-- Keywords_____________________________________________________ -->
  102.  
  103.         <KEYWORDS>
  104.  
  105.             <!-- Io primitives -->
  106.             <KEYWORD1>Block</KEYWORD1>
  107.             <KEYWORD1>Buffer</KEYWORD1>
  108.             <KEYWORD1>CFunction</KEYWORD1>
  109.             <KEYWORD1>Date</KEYWORD1>
  110.             <KEYWORD1>Duration</KEYWORD1>
  111.             <KEYWORD1>File</KEYWORD1>
  112.             <KEYWORD1>Future</KEYWORD1>
  113.             <KEYWORD1>List</KEYWORD1>
  114.             <KEYWORD1>LinkedList</KEYWORD1>
  115.             <KEYWORD1>Map</KEYWORD1>
  116.             <KEYWORD1>Nop</KEYWORD1>
  117.             <KEYWORD1>Message</KEYWORD1>
  118.             <KEYWORD1>Nil</KEYWORD1>
  119.             <KEYWORD1>Number</KEYWORD1>
  120.             <KEYWORD1>Object</KEYWORD1>
  121.             <KEYWORD1>String</KEYWORD1>
  122.             <KEYWORD1>WeakLink</KEYWORD1>
  123.  
  124.             <!-- Io lambda-like primitives -->
  125.             <KEYWORD1>block</KEYWORD1>
  126.             <KEYWORD1>method</KEYWORD1>
  127.  
  128.             <!--  Io control primitives -->
  129.             <KEYWORD2>while</KEYWORD2>
  130.             <KEYWORD2>foreach</KEYWORD2>
  131.             <KEYWORD2>if</KEYWORD2>
  132.             <KEYWORD2>else</KEYWORD2>
  133.             <KEYWORD2>do</KEYWORD2>
  134.  
  135.             <!--  Io basic messages -->
  136.             <KEYWORD3>super</KEYWORD3>
  137.             <KEYWORD3>self</KEYWORD3>
  138.             <KEYWORD3>clone</KEYWORD3>
  139.             <KEYWORD3>proto</KEYWORD3>
  140.             <KEYWORD3>setSlot</KEYWORD3>
  141.             <KEYWORD3>hasSlot</KEYWORD3>
  142.             <KEYWORD3>type</KEYWORD3>
  143.             <KEYWORD3>write</KEYWORD3>
  144.             <KEYWORD3>print</KEYWORD3>
  145.             <KEYWORD3>forward</KEYWORD3>
  146.  
  147.         </KEYWORDS>
  148.  
  149.     </RULES>
  150.  
  151. </MODE>
  152.  
  153. <!-- EOF-UNIX/iso-8895-1__________________________@RisingSun//XML//1.0//EN -->
  154.